$imgUrl : "../../img/";
$svgUrl : "../../img/svg/";
@keyframes search_disappear
{
  to {
    transform:scale(0,0);
    opacity: 0;
  }
}
@keyframes search_block_show
{
  from{
    margin-left: 40px;
    opacity: 0;
  }
  to {
    margin-left: 0;
    opacity: 1;
  }
}

@keyframes line_left_intersect
{
  to {
    transform: rotate(45deg);
    transform-origin: 0% 100%;
  }
}
@keyframes line_right_intersect
{
  to {
    transform: rotate(-45deg);
    transform-origin: 0% 100%;
  }
}
// 展示图片移动动画
@keyframes show_img_move
{
  to {
    margin-top: 0;
  }
}

// 顶部导航条
.nav{
  >.container{
    position: relative;
  }
  width: 100%;
  height: 44px;
  background-color: rgba(0,0,0,0.8);
  .logo{
    float: left;
    background-repeat: no-repeat;
    background-size: 20px 44px;
    background-image: url($svgUrl + "image_large.svg");
    background-position: center center;
    width: 20px;
    height: 44px;
    margin-right: 80px;
  }
  .product{
    float: left;
    margin: 0;
    padding: 0;
    height: 44px;
    line-height: 44px;
    li{
      float:left;
      list-style: none;
      margin-right: 40px;
      color:#fff;
      a{
        display: block;
        padding-left: 20px;
        padding-right: 20px;
        color: white;
        text-decoration: none;
        &.show{
          animation: search_disappear 1s forwards;
        }
      }
      a:hover{
        text-decoration: none;
      }

    }
  }
  .search-block{
    float : left;
    display: none;
    .search-block-magnifier{
      float: left;
      background-image: url($svgUrl + "search.svg");
      background-repeat: no-repeat;
      background-size: 20px 44px;
      background-position: center center;
      width: 20px;
      height: 44px;
      margin-right: 10px;
    }
    input{
      float: left;
      color: #fff;
      background-color: transparent;
      margin-top: 14px;
      border: none;
      margin-right: 80px;
      &:focus{
        outline: none;
      }
    }
    &.show{
      animation: search_block_show 1s forwards;
    }
  }
  .search{
    float : left;
    background-image: url($svgUrl + "search.svg");
    background-repeat: no-repeat;
    background-size: 20px 44px;
    background-position: center center;
    width: 20px;
    height: 44px;
    margin-right: 80px;
    cursor: pointer;
    &:hover{
      opacity: 0.6;
    }

  }
  .search-close{
    display: none;
    position: absolute;
    right:0;
    width: 44px;
    height: 44px;
    // 上横线样式
    .line_left{
      position: absolute;
      left: 17px; top:13px;
      width: 1px; height: 18px;
      background-color:white;
      &.start{ // 附加交叉动画
        animation: line_left_intersect 0.6s forwards;
      }
    }
    //下横线样式
    .line_right{
      position: absolute;
      left: 30px; top:13px;
      width: 1px; height: 18px;
      background-color:white;
      &.start{ // 附加交叉动画
        animation: line_right_intersect 0.6s forwards;
      }
    }

  }

  .shopping{
    position: absolute;
    right:0;
    background-repeat: no-repeat;
    background-size: 20px 44px;
    background-image: url($svgUrl + "shopping.svg");
    background-position: center center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    &.show{
      animation: search_disappear 1s forwards;
    }
  }
}

// 中间展示
.main{
  max-width: 1000px;
  margin: 10px auto;
  // 左边图片
  .show-img{
    float: left;
    width: 60%;
    height: 670px;
    background-image: url($imgUrl + 'iphone-6s-change_large.jpg');
    background-repeat: no-repeat;
    margin-top: 40px;
    animation: show_img_move 1.2s ease-in-out forwards;
  }
  // 右侧介绍
  .show-intro{
    float: left;
    width: 40%;
    padding-top: 200px;
    .title1{
      color: #333333;
      font-size: 80px;
      font-weight: 200;
    }
    .title2{
      color: #333333;
      font-size: 40px;
      font-weight: 100;
    }
    .link{
      margin-top: 20px;
      .link-span{
        font-size: 25px;
        font-weight: 100;
        margin-right: 40px;
      }
    }
  }
}

.section-show{
  .show-block{
    float: left;
    width: 25%;
    height: 200px;
  }
  .show-block-1{
    background-image: url($imgUrl + 'accessories_large.jpg');
    background-repeat: no-repeat;
    background-position: center center;
  }
  .show-block-2{
    background-image: url($imgUrl + 'customer_letter_large.jpg');
    background-repeat: no-repeat;
    background-position: center center;
  }
  .show-block-3{
    background-image: url($imgUrl + 'ipad_pro_large.jpg');
    background-repeat: no-repeat;
    background-position: center center;
  }
  .show-block-4{
    background-image: url($imgUrl + 'watch_large.jpg');
    background-repeat: no-repeat;
    background-position: center center;
  }
}

.section-link{
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 100;
}

.footer{
  width: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #f2f2f2;
  .show-block{
    float: left;
    width: 25%;
  }
  .content{
    pointer-events: none;
    color: #333;
    font-size: 12px;
    margin-bottom: 20px;
    ul{
      margin: 8px 0 0 0;
      padding: 0;
      li{

        list-style: none;
        margin-bottom: 8px;
        a{
          font-size: 12px;
          color: #666;
          pointer-events: auto;
          cursor: pointer;
          &:hover{
            color: black;
          }
        }
      }
    }
  }
  .more-way{
    width: 100%;
    font-size: 12px;
    padding-bottom: 10px;
  }
  .copyright{
    width: 100%;
    font-size: 12px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}